package items;

public class item_data {
	
	private String listname;
	private String itemname;
	private double quantity;
	private double price;
	private boolean done;
	private long rowID;
	private double total_price;
	
	public item_data(String listname, long rowId, String itemname, double quantity, double price, double totalprice){
		this.listname = listname;
		this.itemname = itemname;
		this.quantity = quantity;
		this.price = price;
		this.rowID = rowId;
		this.total_price = totalprice;
	}
	
	public item_data(String listname, String itemname, double quantity, double price, double totalprice){
		this.listname = listname;
		this.itemname = itemname;
		this.quantity = quantity;
		this.price = price;
		this.total_price = totalprice;
	}
	
	public item_data(String listname, String itemname, String quantity, String price, String totalprice) {
		this.listname = listname;
		this.itemname = itemname;
		this.quantity = Double.parseDouble(quantity);
		this.price = Double.parseDouble(price);
		this.total_price = Double.parseDouble(totalprice);
	}

	public String getListname(){
		return listname;
	}
	
	public String getItemname(){
		return itemname;
	}
	
	public double getQuantity(){
		return quantity;
	}
	
	public double getPrice(){
		return price;
	}
	
	public boolean getDone(){
		return done;
	}
	
	public long getRowId(){
		return rowID;
	}
	
	public double getTotalPrice(){
		return total_price;
	}
}
